package com.atguigu.ct.producer.bean;

import com.atguigu.ct.common.bean.Data;

/**
 * Description: 联系人
 * @Author: yyx
 * @Create: 2023/4/10 12:03
 * @Version: 8
 */
public class Contact extends Data {
    private String tel;
    private String name;

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) { this.tel = tel; }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setValue(Object val) {
        content = (String) val;
        String[] values = content.split("\t");
        setName(values[1]);
        setTel(values[0]);
    }

    public String toString(){
        return "Contant[" + tel + "," + name + "]";
    }
}
